export const searchForm = [
    {
        type: 'rangePicker',
        key: 'startClassTime',
        label: '开课时间',
        props: {

        }
    },
    {
        type: 'select',
        key: 'depart',
        label: '学部',
        optionsConfig: {
            options: [],
            pager: {}
        },
        props: {
            mode: 'multiple'
        }
    },
    {
        type: 'select',
        key: 'periodName',
        label: '期名',
        optionsConfig: {
            options: [],
            pager: {}
        },
        props: {
            mode: 'multiple'
        }
    },
    {
        type: 'select',
        key: 'grade',
        label: '年级',
        optionsConfig: {
            options: [],
            pager: {}
        },
        props: {
            mode: 'multiple'
        }
    }
];

// 页面id
export const pageId = {
    0: {
        id: '',
        title: '短期班行课转化',
        selectID: 'selectUnit_7'
    },
};

// 纬度id由页面id 和 纬度key拼接成, 小驼峰
export const getDimensionId = (index, searchKey) => {
    if (searchKey && pageId[index].id) {
        const newSearchKey = searchKey.slice(0, 1).toUpperCase() + searchKey.slice(1);

        return pageId[index].id + newSearchKey;
    }

    return '';
};

export const PartType = 9;

export const TransformResultUnitId = 'transformationCoursesOnePart_partOne_composite_1';

export const META = {
    PART_THREE_COMPOSITE_ONE: 'transformationCoursesThreePart_partOne_composite_1',
    PART_THREE_TEXT_ONE: 'transformationCoursesThreePart_partOne_text_1'
};
